package org.example;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * ClassName: WuDaAspect
 * Package: org.example
 * Description: 演示切面的优先级
 *
 * @Author wanghao
 * @Create 2024-07-08 9:59
 * @Version 1.0
 */
@Component
@Aspect
@Order(3)
public class WuDaAspectC {
    @Before(value = "org.example.MyPointCut.myPointCut()")
    public void song() {
        System.out.println("WuDaAspectC - before");
    }

    @After(value = "org.example.MyPointCut.myPointCut()")
    public void song2() {
        System.out.println("WuDaAspectC - after");
    }

}
